// 12/04/2009 Dennis
class User
{
  String name;
  HashMap albums;
  HashMap artists;
  HashMap tracks;
  ArrayList played;
  long minTime;
  long maxTime;
  
  // 12/04/2009 Dennis
  public User(String name)
  {
    tracks = new HashMap();
    albums = new HashMap();
    artists = new HashMap();
    played = new ArrayList();
    this.name = name;
    minTime = 0;
    maxTime = 0;
  }
  
  // 12/04/2009 Dennis
  public void addTrack(Track track)
  {
    if(!tracks.containsKey(track.name))
      tracks.put(track.name, track);
  }
  
  // 12/04/2009 Dennis
  public void addAlbum(Album album)
  {
    if(!albums.containsKey(album.name))
      albums.put(album.name, album);
  }
  
  // 12/04/2009 Dennis
  public void addArtist(Artist artist)
  {
    if(!artists.containsKey(artist.name))
      artists.put(artist.name, artist);
  }
}
